<div class="row">
    <div class="col-lg-12">
        <span class="pagination_count">共{{ pagination.total }}条记录 | 每页{{ pagination.per_page }}条</span>
        <nav class="pull-right">
            <ul class="pagination">
                {% if pagination.has_prev %}
                    <li class="page-item">
                        <a class="page-link" href="{{ page_url }}&page={{ pagination.prev_num }}">上一页</a>
                    </li>
                {% else %}
                    <li class="page-item disabled"><a class="page-link" href="#">上一页</a></li>
                {% endif %}

                {% for page in pagination.iter_pages() %}
                    {% if page %}
                        <li class="page-item {% if page==pagination.page %}active{% endif %}">
                            <a class="page-link" href="{{ page_url }}&page={{ page }}">{{ page }}</a>
                        </li>
                    {% else %}
                        <li class="page-item disabled"><a class="page-link" href="#">&hellip;</a></li>
                    {% endif %}
                {% endfor %}

                {% if pagination.has_next %}
                    <li class="page-item">
                        <a class="page-link" href="{{ page_url }}&page={{ pagination.next_num }}">下一页</a>
                    </li>
                {% else %}
                    <li class="page-item disabled"><a class="page-link" href="#">下一页</a></li>
                {% endif %}
            </ul>
        </nav>
    </div>
</div>

